package com.demo.testWork.testCase;

import com.demo.dao.mode.PersonInfo;
import com.demo.utils.CappCommonUtil;
import io.qameta.allure.*;
import io.restassured.response.Response;
import org.testng.annotations.Test;

import java.util.HashMap;
import java.util.Map;

@Features({@Feature("Page Test")})
@Severity(SeverityLevel.NORMAL)
public class LoginHomePage extends BaseCase {

    @Story("Login Home Page")
    @Issue("BUG号：123")
    @Link(value = "https://jira.XXXXX.net/jira/browse/CAPPCN-13246", url = "https://jira.XXXXX.net/jira/browse/CAPPCN-13246")
    @Test(enabled = true)
    public void loginHomePage() {

        loginStep.loginCapp(new PersonInfo());

        // After Login
        // Step1: acceptTerms
        homePage.getXxxxx(new HashMap<>()).verifyResponseCode(200);
    }
}
